import java.util.*;
public class Sorting
{
public static void main(String args[])
{
	int[] a;
	int size;
	int count;
	Scanner s= new Scanner(System.in);
	System.out.println("Enter the Size of Array:");
	size=s.nextInt();
	a=new int[size];
	MySorting d=new MySorting();
	OddNumbers o=new OddNumbers();
	EvenNumbers e=new EvenNumbers();
	
	for( count=0;count<=size-1;count++)
	{
		System.out.println("Enter Interger Value:" +count);
		a[count]=s.nextInt();
	}
	
	
	//Arrays.sort(a);
	System.out.println("The sorted Intergers:");
	int[] sortedArray=new int[size];
	sortedArray=d.sortlogic(a, size);
	for(count=0;count<=size-1;count++)
	{
		//System.out.print( " "+a[count]);
		System.out.print( " "+sortedArray[count]);
		
	}
	
	o.oddlogic(a, size);
	int[] evenArray=new int[size];
	System.out.println("\n  even list:");
	evenArray=e.evenlogic(a, size);
	
	for(count=0;count<=size-1;count++)
	{
		System.out.print(" "+ evenArray[count]);
	}
	
	Unique u=new Unique();
	u.uniquNumbers(a, size);
	
  }
}